package com.idfsgm;

import com.example.idfsgm.R;
import com.example.idfsgm.R.layout;
import com.example.idfsgm.R.menu;

import datatypes.Duty;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class ServiceType extends Activity {

	public Button kithenDutyBtn;
	public Button guardDutyBtn;
	public Button otherDutyBtn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_service_options);
		
		kithenDutyBtn = (Button) findViewById(R.id.kitchenDutyBtn);
		guardDutyBtn = (Button) findViewById(R.id.GuardDutyBtn);
		otherDutyBtn = (Button) findViewById(R.id.OtherDutyBtn);
		
		kithenDutyBtn.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				Intent myIntent = new Intent(getBaseContext(),
						ServiceSettings.class);
				myIntent.putExtra("TYPE",Duty.KitchenDuty);
				startActivity(myIntent);
				 
			}
		});
		
		guardDutyBtn.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				Intent myIntent = new Intent(getBaseContext(),
						ServiceSettings.class);
				myIntent.putExtra("TYPE",Duty.GuardDuty);
				startActivity(myIntent);
				 
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.service_options, menu);
		return true;
	}

}
